/**   
 * <p>Title: DataPack.java</p>
 * @Package com.synjones.maius.web 
 * <p>Description: TODO(用一句话描述该文件做什么)</p> 
 * @since 2017年5月15日 下午2:28:42 
 * @version V1.0   
 */
package com.synjones.zeuscloudapp.util;

import lombok.Data;

import java.io.Serializable;


/**
 * <p>
 * Description: TODO(用一句话描述该文件做什么)
 * </p>
 * 
 * @version V1.0
 */
@SuppressWarnings("serial")
@Data
public class DataPack<T> implements Serializable
{
    private boolean success = true;
    private String msg = "处理成功";
    private T obj ;

    public DataPack(T obj) {
        this.obj = obj;
    }
    public DataPack(boolean success, String msg, T obj) {
        this.success = success;
        this.msg = msg;
        this.obj = obj;
    }
    
    public DataPack(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }
    public DataPack() {
    }


}
